package com.googlecode.monitoria.client.beans;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;


/**
 * A group of students.
 * @author Ricardo Araujo Santos - ricardo@lsd.ufcg.edu.br
 */
@Entity
public class Group implements Persistable{
	
	@Id
	private Integer id;
	
	@OneToMany
	private List<User> students;
	
	
	/**
	 * Default empty constructor.
	 */
	public Group() {
	}

	/**
	 * Default constructor using fields.
	 * @param students
	 */
	public Group( List<User> students ) {
		this.students = students;
	}

	/**
	 * @return the students
	 */
	public List<User> getStudents() {
	
		return students;
	}

	/**
	 * @param students the students to set
	 */
	public void setStudents( List<User> students ) {
	
		this.students = students;
	}
	
}
